package com.source.multithread.xml;


import javax.xml.bind.annotation.*;

/**
 * @Author wengqy
 * @Date 2021/1/8
 */

@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name="message")
//@XmlNs(prefix = "bosc",namespaceURI="dddsss")
public class Student {
    @XmlElement(name="id")
    private int id;
    @XmlElement(name="name")
    private String name;
    @XmlElement(name="age")
    public int age;



    private  String studentStr(String sss){
        return  "studentStr"+sss;
    }

    public Student studentStu(){
        return  new Student(1222,"wengg",22222);
    }


    public Student(int id, String name, int age) {
        this.id = id;
        this.name = name;
        this.age = age;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    public int getId() {
        return id;
    }

    public Student() {
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }


}
